package com.zhanghao.sdk.network;

import java.util.HashMap;

public class ZHHttpArgs {
    private String url; // 地址
    private HashMap<String,Object> headers = new HashMap<>(); // 请求头
    private HashMap<String,Object> data = new HashMap<>();; // data数据
    private HashMap cookies; // cookie
    private String method = "POST"; // 请求方式
    private boolean loading = false; // loading显示方式
    private long timeLong = 5000; // 超时时间,默认5秒

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public HashMap<String,Object> getHeaders() {
        return headers;
    }

    public HashMap<String,Object> getData() {
        return data;
    }

    public HashMap getCookies() {
        return cookies;
    }

    public void setCookies(HashMap cookies) {
        this.cookies = cookies;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public boolean isLoading() {
        return loading;
    }

    public void setLoading(boolean loading) {
        this.loading = loading;
    }

    public long getTimeLong() {
        return timeLong;
    }

    public void setTimeLong(long timeLong) {
        this.timeLong = timeLong;
    }
}
